<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script type="text/javascript">
	var arr=[100,200,300,400,500,600];
	console.log(arr[2]);
	for(var i=0;i<arr.length;i++){
		arr.pop(arr[i]);
	};
	var newArr=arr;
	console.log(newArr);
	alert("qwe")
</script>
</body>
</html>